package smcms.service.resources.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import java.util.List;
@Component
public class GetCurrentService {
    @Autowired
    private DiscoveryClient discoveryClient;
    public List<String> getNacosService(){
        List<String> services = discoveryClient.getServices();
        return services;
    }
}
